﻿// ===============================================================================
// DotNet.Platform 开发框架 2016 版权所有
// ===============================================================================

using System;
using DotNet.Entity;

namespace DotNet.Edu.Entity
{
    /// <summary>
    /// 安全培训资料上报
    /// </summary>
    [Table("安全培训资料上报", Name = "aqpx_file")]
    public class AqpxFile
    {
        /// <summary>
        /// 主键
        /// </summary>
        [PrimaryKey]
        [Column("主键", false)]
        public string id { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [Column("姓名")]
        public string name { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        [Column("身份证号")]
        public string id_number { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        [Column("手机号码")]
        public string phone { get; set; }

        /// <summary>
        /// 状态[0-未提交,1-已提交,2-审核通过]
        /// </summary>
        [Column("状态[0-未提交,1-已提交,2-审核通过]",Exported =false)]
        public int status { get; set; }

        /// <summary>
        /// 状态名称
        /// </summary>
        [Ignore]
        [Column("状态名称")]
        public string statusName
        {
            get
            {
                switch (status)
                {
                    case 1:
                        return "已提交";
                    case 2:
                        return "审核通过";
                    default:
                        return "未提交";
                }
            }
        }

        ///// <summary>
        ///// 是否报名参加面授[0-未报名,1-已报名]
        ///// </summary>
        //[Column("是否报名参加面授[0-未报名,1-已报名]")]
        //public int bm_status { get; set; }

        ///// <summary>
        ///// 面授状态名称
        ///// </summary>
        //[Ignore]
        //public string bmStatusName
        //{
        //    get
        //    {
        //        switch (bm_status)
        //        {
        //            case 1:
        //                return "已报名";
        //            default:
        //                return "未报名";
        //        }
        //    }
        //}

        /// <summary>
        /// 微信OpenID
        /// </summary>
        [Column("微信OpenID",Exported =false)]
        public string open_id { get; set; }

        /// <summary>
        /// 最后一次操作时间
        /// </summary>
        [Column("最后一次操作时间")]
        public DateTime operate_date_time { get; set; }

        /// <summary>
        /// 身份证正面(附件)
        /// </summary>
        [Column("身份证正面(附件)",Exported =false)]
        public string file_sfz1 { get; set; }

        /// <summary>
        /// 身份证反面(附件)
        /// </summary>
        [Column("身份证反面(附件)",Exported =false)]
        public string file_sfz2 { get; set; }

        /// <summary>
        /// 考核申请表(附件)
        /// </summary>
        [Column("考核申请表(附件)",Exported =false)]
        public string file_sqb { get; set; }

        /// <summary>
        /// 毕业证(附件)
        /// </summary>
        [Column("毕业证(附件)",Exported =false)]
        public string file_byz { get; set; }

        /// <summary>
        /// 劳动合同(附件)
        /// </summary>
        [Column("劳动合同(附件)",Exported =false)]
        public string file_ldht { get; set; }

        /// <summary>
        /// 企业营业执照(附件)
        /// </summary>
        [Column("企业营业执照(附件)",Exported =false)]
        public string file_yyzz { get; set; }



        //[Column("计划ID")]
        //public string plan_id { get; set; }

        //[Column("计划名称")]
        //public string plan_name { get; set; }

        //[Column("报名时间")]
        //public DateTime? reservation_date_time { get; set; }

        /// <summary>
        /// 支付状态[0-未支付,1-支付]
        /// </summary>
        [Column("支付状态",Exported =false)]
        public int pay_status { get; set; }

        [Column("支付状态说明")]
        public string pay_msg { get; set; }

        [Column("支付时间")]
        public DateTime? pay_date_time { get; set; }

        [Column("考试时间")]
        public DateTime? exam_date { get; set; }

        [Column("行业类别")]
        public string industry_category { get; set; }

        [Column("人员类别")]
        public string user_category { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Column("备注")]
        public string remark { get; set; }
    }
}
